
import { Tabs,TabsProps } from 'antd';
import React,{FC} from 'react';
import AssetInfo from './AssetInfo';
import SubDomain from './SubDomain'
import AssetUrlInfo from './AssetUrlInfo'
const onChange = (key: string) => {
    console.log(key);
  };
  
  const items: TabsProps['items'] = [
    {
      key: '1',
      label: '资产',
      children: <AssetInfo/>,
    },
    {
      key: '2',
      label: '子域名',
      children: <SubDomain />,
    },
    {
      key: '3',
      label: 'URL',
      children: <AssetUrlInfo />,
    },
  ];



const Asset:FC = () =>{

    return (
        <div>
         <Tabs defaultActiveKey="1" items={items} onChange={onChange} />
        </div>
    )
}

export default Asset;